﻿
using Microsoft.EntityFrameworkCore;
using RBAC.Common.Domains;
using RBAC.Common.Domains.RabbitProject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Common.MYcontexts
{
    public class EFMycontext : DbContext
    {
        public EFMycontext()
        {
        }

        public EFMycontext(DbContextOptions options) : base(options)
        {
        }

        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<User>users { get; set; }
        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Role> Roel { get; set; }
        /// <summary>
        /// 角色用户关联表
        /// </summary>
        public DbSet<userRole> userRole {  get; set; }
        /// <summary>
        /// 权限表
        /// </summary>

        public DbSet<Permission> permission { get; set; }
        /// <summary>
        /// 角色权限关联表
        /// </summary>
        public DbSet<RolePermission> RolePermission {  get; set; }
  
        //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------








        /// <summary>
        /// 养殖信息管理
        /// </summary>
        public DbSet<breedMess> breedMess {  get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public DbSet<City> City { get; set; }
        /// <summary>
        /// 县级
        /// </summary>
        public DbSet<county> county { get; set; }
        /// <summary>
        /// 商品
        /// </summary>
        public DbSet<Goods> Goods { get; set; }
        /// <summary>
        /// 生产加工详情表
        /// </summary>
        public DbSet<ProcessMess> ProcessMess { get; set; }
        /// <summary>
        /// 商品基本信息表
        /// </summary>
        public DbSet<ProductionBasicMess> ProductionBasicMess { get; set; }
        /// <summary>
        /// 放置图片
        /// </summary>
        public DbSet<ProductionPutImages> ProductionPutImages { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public DbSet<Province> Province { get; set; }
        /// <summary>
        /// 屠宰信息表
        /// </summary>
        public DbSet<slaughterMess> slaughterMess { get; set; }
        /// <summary>
        /// 溯源下拉框
        /// </summary>
        public DbSet<TranceSelect> TranceSelect { get; set; }
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<UserNew> UserNew { get; set; }
        /// <summary>
        /// 保健信息
        /// </summary>
        public DbSet<VaccineMess> VaccineMess { get; set; }
    }
}
